/*
 * 函数重载的案列
 * */
class MyCompare {
    public static Integer getMax(Integer a, Integer b) {
        return a > b ? a : b;
    }
    public static Float getMax(Float a, Float b) {
        return a > b ? a : b;
    }
    public static Double getMax(Double a, Double b) {
        return a > b ? a : b;
    }
}

public class Client {
    public static void main(String[] args) {
        Integer x = 1, y = 2;
        Integer rInt;
        // 在编译阶段就能确定调用的是public static Integer getMax(Integer a, Integer b)
        // 故属于静态多态
        rInt = MyCompare.getMax(x, y);
    }
}
